package com.snailct.bpp.client.component.base.model;


import com.snailct.bpp.db.MyBatisPojo;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 用户信息
 * @author :andy
 *
 */
@Table(name="bt_user")
public class User extends MyBatisPojo {
    private enum UserStatus{
        DELETED,
        ACTIVATED,
        LOCK
    }
    @Column
    private String username;
    @Column
    private String password;
    private String realName;
    private String officePhone;
    @Column
    private String email;
    private UserStatus status;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getOfficePhone() {
        return officePhone;
    }

    public void setOfficePhone(String officePhone) {
        this.officePhone = officePhone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }
}
